package fr.xgouchet.wedding.client.jsni;

import com.google.gwt.core.client.JavaScriptObject;

import fr.xgouchet.wedding.shared.model.Task;

/**
 * The JS binder to a {@link Task} description
 * 
 * @author x.gouchet
 * 
 */
public class JSTask extends JavaScriptObject {

	/**
	 * Overlay types always have protected, zero-argument constructors.
	 */
	protected JSTask() {
	}

	/**
	 * @return the guest id
	 */
	public final native String getID() /*-{
		return this.id;
	}-*/;

	/**
	 * JSNI methods to get title.
	 * 
	 * @return the title
	 */
	public final native String getTitle() /*-{
		return this.title;
	}-*/;

	/**
	 * JSNI methods to get description.
	 * 
	 * @return the desription
	 */
	public final native String getDescription() /*-{
		return this.description;
	}-*/;

	/**
	 * JSNI methods to get category.
	 * 
	 * @return the category
	 */
	public final native String getCategory() /*-{
		return this.category;
	}-*/;

	/**
	 * JSNI methods to get status.
	 * 
	 * @return the status
	 */
	public final native boolean getStatus() /*-{
		return this.status;
	}-*/;

	/**
	 * JSNI methods to get days.
	 * 
	 * @return the days
	 */
	public final native int getDays() /*-{
		return this.days;
	}-*/;
}
